{block name=report-classes}
<div class="row">
  <div class="col-sm-12">
    <a href="javascript:void(0);" onClick="exportPageToCSV($(this),$('#print-enrolmentcomparison'),'enrolmentcomparison.csv');" class="btn btn-info report-green"><span>Export CSV</span></a>
  </div>
</div>
<div class="row form">
  <div class="col-sm-12">
    <a href="javascript:void(0);" onClick="printArea('print-enrolmentcomparison');" class="btn btn-info report-green"><span>Print</span></a>
  </div>
</div>
<div id="print-enrolmentcomparison">
	{foreach $classterms as $term}
	<div class="row term">
	  <div class="col-sm-12">
	    <h2 class="title">{$term.term_name} - {$term.term_region}</h2>
	  </div>
	  <div class="col-sm-12">
	    <table class="table table-striped lblue">
	      <thead>
	        <th>Location</th>
	        <th>Class</th>
	        <th>Day</th>
	        <th>Age Group</th>
	        <th>Current Enrolment</th>
	        <th>Previous Enrolment</th>
	      </thead>
	      <tbody>
	      {foreach $term.locations as $loc}
	      {foreach $loc.classes as $ct}
	        <tr>
						<td>{$ct.location_name}</td>
	          <td>{$ct.class_name} - {$ct.agegroup_name}</td>
	          <td>{$ct.class_weekday}</td>
	          <td>{$ct.agegroup_name}</td>
	          <td>{$ct.reenrolment.enrolled}</td>
	          <td>{$ct.reenrolment.lastenrolments}</td>
	        </tr>
	      {/foreach}
	      {/foreach}
	      </tbody>
	    </table>
	  </div>
	</div>
	{/foreach}
</div>
{/block} 


